package com.hylanda.pb.service.common;

/**
 * @author zhangy
 * @E-mail:blackoon88@gmail.com
 * @qq:846579287
 * @version created at：2018年1月19日 上午11:18:50 note
 */
public class ConstantHelper {
	/***
	 * power bi
	 */

	public static String ver = "0.2.0";
	public static String aud = "https://analysis.windows.net/powerbi/api";
	public static String iss = "Power BI Node SDK";
	public static String type = "embed";
	public static final String Authorization = "AppKey rE1nqSmvcFjBFBA9qNuajqTwT48/33Qp2wsWs44adq2EEWWSD5YAHfb+2wojONrv4ehfuYp7+gyOHnXJrak5uQ==";

	public static final String collectionName = "reidxtree";

	public static final String workspaceID = "e7cc1354-6480-4030-bf0c-9d9c80845dba";

	public static final String dataSetDisplayName = "defaultName";
	
	// powerBi 获取导入状态 Get
	public static final String getImportStatus = "https://api.powerbi.cn/v1.0/collections/{collectionName}/workspaces/{workspaceID}/imports/{importId}";

	public static final String ERROR_HEAD = "500";
	public static final String RESPONSE_FAIL="fail";
	public static final String RESPONSE_SUCCESS="success";

	public static long getCurrentTime() {
		return System.currentTimeMillis() / 1000;
	}

	public static long getOneHourLaterTime() {
		return (System.currentTimeMillis() / 1000 + 3600);
	}
}
